Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automatic common/ update #111

Merged
merged 8 commits into from
Dec 21, 2023

Conversation

claudiol
Copy link
Contributor

This is part of an automatic process run by claudiol on Thu Dec 21 02:22:37 PM MST 2023

mbaldessari and others added 7 commits December 20, 2023 10:00
A normal non-private deployment:

    ./pattern.sh make show
    helm template common/operator-install/ --name-template multicloud-gitops -f values-global.yaml --set main.git.repoURL="https://github.com/mbaldessari/multicloud-gitops.git" --set main.git.revision=private-repo-cli
    ...
    apiVersion: gitops.hybrid-cloud-patterns.io/v1alpha1
    kind: Pattern
    metadata:
      name: multicloud-gitops
      namespace: openshift-operators
    spec:
      clusterGroupName: hub
      gitSpec:
        targetRepo: https://github.com/mbaldessari/multicloud-gitops.git
        targetRevision: private-repo-cli
      gitOpsSpec:
        operatorChannel: gitops-1.8
        operatorSource: redhat-operators
      multiSourceConfig:
        enabled: true

When we set the TOKEN_SECRET AND TOKEN_NAMESPACE env variables:

    ./pattern.sh make TOKEN_SECRET=foo TOKEN_NAMESPACE=bar show
    helm template common/operator-install/ --name-template multicloud-gitops -f values-global.yaml --set main.tokenSecret=foo --set main.tokenSecretNamespace=bar --set main.git.repoURL="git@github.com:mbaldessari/multicloud-gitops.git" --set main.git.revision=private-repo-cli
    ...
    apiVersion: gitops.hybrid-cloud-patterns.io/v1alpha1
    kind: Pattern
    metadata:
      name: multicloud-gitops
      namespace: openshift-operators
    spec:
      clusterGroupName: hub
      gitSpec:
        targetRepo: git@github.com:mbaldessari/multicloud-gitops.git
        targetRevision: private-repo-cli
      gitOpsSpec:
        operatorChannel: gitops-1.8
        operatorSource: redhat-operators
      multiSourceConfig:
        enabled: true
      tokenSecret: foo
      tokenSecretNamespace: bar

In the latter case we do not rewrite the URL as it might an ssh-based
one.
Add support for private repo deployments via CLI
Fix placement of tokenSecret material
Fix placement of tokenSecret material in the right section
@claudiol claudiol self-assigned this Dec 21, 2023
@claudiol claudiol merged commit fd3b1ab into validatedpatterns:main Dec 21, 2023
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants