Skip to content

Commit

Permalink
Merge branch 'master' into support-flux-managed-clusters
Browse files Browse the repository at this point in the history
Signed-off-by: QuentinBisson <[email protected]>
  • Loading branch information
QuentinBisson committed Sep 18, 2023
2 parents 4bef4e4 + ad0727f commit ab43a27
Show file tree
Hide file tree
Showing 42 changed files with 84 additions and 517 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/zz_generated.check_values_schema.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# DO NOT EDIT. Generated with:
#
# devctl@6.6.0
# devctl@6.9.0
#
name: 'Values and schema'
on:
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/zz_generated.create_release.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# DO NOT EDIT. Generated with:
#
# devctl@6.6.0
# devctl@6.9.0
#
name: Create Release
on:
Expand All @@ -15,7 +15,7 @@ on:
jobs:
debug_info:
name: Debug info
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
steps:
- name: Print github context JSON
run: |
Expand All @@ -24,7 +24,7 @@ jobs:
EOF
gather_facts:
name: Gather facts
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
outputs:
project_go_path: ${{ steps.get_project_go_path.outputs.path }}
ref_version: ${{ steps.ref_version.outputs.refversion }}
Expand Down Expand Up @@ -84,7 +84,7 @@ jobs:
echo "refversion=${refversion}" >> $GITHUB_OUTPUT
update_project_go:
name: Update project.go
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
if: ${{ needs.gather_facts.outputs.version != '' && needs.gather_facts.outputs.project_go_path != '' && needs.gather_facts.outputs.ref_version != 'true' }}
needs:
- gather_facts
Expand Down Expand Up @@ -146,7 +146,7 @@ jobs:
hub pull-request -f -m "${{ env.title }}" -b ${{ env.base }} -h ${{ env.branch }} -r ${{ github.actor }}
create_release:
name: Create release
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
needs:
- gather_facts
if: ${{ needs.gather_facts.outputs.version }}
Expand Down Expand Up @@ -194,7 +194,7 @@ jobs:

create-release-branch:
name: Create release branch
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
needs:
- gather_facts
if: ${{ needs.gather_facts.outputs.version }}
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/zz_generated.create_release_pr.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# DO NOT EDIT. Generated with:
#
# devctl@6.6.0
# devctl@6.9.0
#
name: Create Release PR
on:
Expand Down Expand Up @@ -30,7 +30,7 @@ on:
jobs:
debug_info:
name: Debug info
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
steps:
- name: Print github context JSON
run: |
Expand All @@ -39,7 +39,7 @@ jobs:
EOF
gather_facts:
name: Gather facts
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
outputs:
repo_name: ${{ steps.gather_facts.outputs.repo_name }}
branch: ${{ steps.gather_facts.outputs.branch }}
Expand Down Expand Up @@ -136,7 +136,7 @@ jobs:
fi
create_release_pr:
name: Create release PR
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
needs:
- gather_facts
if: ${{ needs.gather_facts.outputs.skip != 'true' }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/zz_generated.gitleaks.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# DO NOT EDIT. Generated with:
#
# devctl@6.6.0
# devctl@6.9.0
#
name: gitleaks

Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# DO NOT EDIT. Generated with:
#
# devctl@6.6.0
# devctl@6.9.0
#

include Makefile.*.mk
Expand Down
2 changes: 1 addition & 1 deletion Makefile.gen.app.mk
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# DO NOT EDIT. Generated with:
#
# devctl@6.6.0
# devctl@6.9.0
#

##@ App
Expand Down
2 changes: 1 addition & 1 deletion Makefile.gen.go.mk
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# DO NOT EDIT. Generated with:
#
# devctl@6.6.0
# devctl@6.9.0
#

APPLICATION := $(shell go list -m | cut -d '/' -f 3)
Expand Down
2 changes: 1 addition & 1 deletion Makefile.gen.k8sapi.mk
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# DO NOT EDIT. Generated with:
#
# devctl@6.6.0
# devctl@6.9.0
#

# Directories.
Expand Down
30 changes: 15 additions & 15 deletions files/templates/scrapeconfigs/_tlsconfig.yaml
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
[[- define "_tlsconfig" -]]
[[- if ne .ClusterType "management_cluster" -]]
[[- if eq .AuthenticationType "token" -]]
bearer_token_file: /etc/prometheus/secrets/[[ .SecretName ]]/token
[[- end ]]
tls_config:
ca_file: /etc/prometheus/secrets/[[ .SecretName ]]/ca
[[- if eq .AuthenticationType "certificates" ]]
cert_file: /etc/prometheus/secrets/[[ .SecretName ]]/crt
key_file: /etc/prometheus/secrets/[[ .SecretName ]]/key
[[- end ]]
insecure_skip_verify: false
[[- else -]]
bearer_token_file: /var/run/secrets/kubernetes.io/serviceaccount/token
tls_config:
ca_file: /var/run/secrets/kubernetes.io/serviceaccount/ca.crt
insecure_skip_verify: true
[[- if eq .AuthenticationType "token" ]]
bearer_token_file: /etc/prometheus/secrets/[[ .SecretName ]]/token
[[- end ]]
tls_config:
ca_file: /etc/prometheus/secrets/[[ .SecretName ]]/ca
[[- if eq .AuthenticationType "certificates" ]]
cert_file: /etc/prometheus/secrets/[[ .SecretName ]]/crt
key_file: /etc/prometheus/secrets/[[ .SecretName ]]/key
[[- end ]]
insecure_skip_verify: false
[[- else ]]
bearer_token_file: /var/run/secrets/kubernetes.io/serviceaccount/token
tls_config:
ca_file: /var/run/secrets/kubernetes.io/serviceaccount/ca.crt
insecure_skip_verify: true
[[- end -]]
[[- end -]]
30 changes: 15 additions & 15 deletions files/templates/scrapeconfigs/_tlsconfig_skip.yaml
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
[[- define "_tlsconfig_skip" -]]
[[- if ne .ClusterType "management_cluster" -]]
[[- if eq .AuthenticationType "token" -]]
bearer_token_file: /etc/prometheus/secrets/[[ .SecretName ]]/token
[[- end ]]
tls_config:
ca_file: /etc/prometheus/secrets/[[ .SecretName ]]/ca
[[- if eq .AuthenticationType "certificates" ]]
cert_file: /etc/prometheus/secrets/[[ .SecretName ]]/crt
key_file: /etc/prometheus/secrets/[[ .SecretName ]]/key
[[- end ]]
insecure_skip_verify: true
[[- else -]]
bearer_token_file: /var/run/secrets/kubernetes.io/serviceaccount/token
tls_config:
ca_file: /var/run/secrets/kubernetes.io/serviceaccount/ca.crt
insecure_skip_verify: true
[[- if eq .AuthenticationType "token" ]]
bearer_token_file: /etc/prometheus/secrets/[[ .SecretName ]]/token
[[- end ]]
tls_config:
ca_file: /etc/prometheus/secrets/[[ .SecretName ]]/ca
[[- if eq .AuthenticationType "certificates" ]]
cert_file: /etc/prometheus/secrets/[[ .SecretName ]]/crt
key_file: /etc/prometheus/secrets/[[ .SecretName ]]/key
[[- end ]]
insecure_skip_verify: true
[[- else ]]
bearer_token_file: /var/run/secrets/kubernetes.io/serviceaccount/token
tls_config:
ca_file: /var/run/secrets/kubernetes.io/serviceaccount/ca.crt
insecure_skip_verify: true
[[- end -]]
[[- end -]]
Loading

0 comments on commit ab43a27

Please sign in to comment.